MAKEFLAGS = -sR

MKDIR = mkdir
RMDIR = rmdir
CP = cp
CD = cd
DD = dd
RM = rm


BUILD_PATH = ./build
MAKE = make
INITLDRMFLGS = -C $(BUILD_PATH) -f initldr.mk
INITLDRLINKMFLGS = -C $(BUILD_PATH) -f ldrlink.mk

.PHONY : build print clean all

build : clean print all

all : 
	$(MAKE) $(INITLDRMFLGS)
	$(MAKE) $(INITLDRLINKMFLGS)
	@echo '恭喜我，Initldr编译构建完成！ ^_^'
clean:
	$(CD) $(BUILD_PATH);$(RM) -f *.o *.bin *.i *.krnl *.s *.map *.lib *.btoj *.vdi *vmdk *.eki *.elf
	@echo 'Initldr: 清理全部已构建文件...^_^'
print:
	@echo '*********正在开始编译构建系统*************'